<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.AddNonStudyStaff" CodeFile="AddNonStudyStaff.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>AddNonStudyStaff</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <asp:Panel ID="headerSection" runat="server">
                        <table class="Header" cellspacing="0">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server" CssClass="Header"></cc1:Header>
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td>
                                    <cc1:HumansSubNavigation ID="humansSubNavigation" runat="server" Visible="False"></cc1:HumansSubNavigation>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:HumansSubModuleNavigation ID="humansSubModuleNavigation" runat="server"></cc1:HumansSubModuleNavigation>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="10" width="100%">
                            <tr>
                                <td>
                                    <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                                </td>
                            </tr>
                        </table>
                        <table class="PlaceBar" width="100%">
                        </table>
                    </asp:Panel>
                    <table width="97%" style="text-align: center" cellspacing="0">
                        <tr>
                            <td>
                                <table width="100%" cellspacing="0">
                                    <tr>
                                        <td>
                                            <table class="DataTitle" cellspacing="0" width="100%">
                                                <tr>
                                                    <td>
                                                        &nbsp;Search Users</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table class="search" width="100%" cellspacing="0">
                                                <tr>
                                                    <td style="width: 20%">
                                                        &nbsp;</td>
                                                    <td valign="top" style="width: 30%">
                                                        <table>
                                                            <tr>
                                                                <td align="right">
                                                                    Last Name:</td>
                                                                <td>
                                                                    <asp:TextBox ID="lastName" runat="server" Width="100%"></asp:TextBox></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right">
                                                                    First Name:</td>
                                                                <td>
                                                                    <asp:TextBox ID="firstName" runat="server"></asp:TextBox></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right">
                                                                    Username:</td>
                                                                <td>
                                                                    <asp:TextBox ID="username" runat="server"></asp:TextBox></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <%--<td class="DataInput" valign="top" style="width: 30%">
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <cc1:ContextlessOrganizationSelectors ID="organizationSelectors" runat="server"></cc1:ContextlessOrganizationSelectors>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>--%>
                                                    <td valign="top" align="right" style="width: 20%">
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:ImageButton ID="search" ImageUrl="../Images/b_search_grey.gif" runat="server"></asp:ImageButton>&nbsp;
                                                                </td>
                                                                <td>
                                                                    <asp:ImageButton ID="clearSelection" runat="server" ImageUrl="../Images/b_clearselect_grey.gif">
                                                                    </asp:ImageButton></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <table class="Invisible" id="dynamicTable" cellspacing="10">
                                    <tr>
                                        <td>
                                            <cc2:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
                                            </cc2:ActivityIndicator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <cc2:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc2:Annunciator>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <table cellspacing="0" width="100%">
                                    <tr>
                                        <td>
                                            <table class="DataTitle" cellspacing="0" width="100%">
                                                <tr>
                                                    <td>
                                                        &nbsp;Search Results</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <cc2:Pager ID="topPager" runat="server"></cc2:Pager>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table class="HumansStaff" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:DataGrid ID="searchResults" runat="server" CssClass="DataGrid" Width="100%"
                                                            AllowCustomPaging="True" AllowPaging="True" AllowSorting="False" AutoGenerateColumns="False">
                                                            <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                            <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                            <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                            <Columns>
                                                                <asp:TemplateColumn HeaderText="Select">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox runat="server" AutoPostBack="False"></asp:CheckBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateColumn>
                                                                <asp:BoundColumn DataField="LastName" ReadOnly="True" HeaderText="Last Name"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="FirstName" ReadOnly="True" HeaderText="First Name"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="Username" ReadOnly="True" HeaderText="Username"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="OrganizationName" ReadOnly="True" HeaderText="Institution > Department > Unit">
                                                                </asp:BoundColumn>
                                                                <asp:BoundColumn Visible="False" DataField="AdmPersonId"></asp:BoundColumn>
                                                            </Columns>
                                                            <PagerStyle Visible="False"></PagerStyle>
                                                        </asp:DataGrid>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <cc2:Pager ID="bottomPager" runat="server"></cc2:Pager>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <table style="height: 5%" width="100%" cellspacing="0" cellpadding="0">
                                    <tr align="right">
                                        <td>
                                            <asp:ImageButton ID="addUser" ImageUrl="../Images/b_add_to_selected_results.gif"
                                                runat="server"></asp:ImageButton>&nbsp;</td>
                                    </tr>
                                </table>
                                <br />
                                <table cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                            <table class="DataTitle" width="100%" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        &nbsp;Selected Results</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table class="HumansStaff" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:DataGrid ID="selectedUsers" runat="server" Width="100%" CssClass="DataGrid"
                                                            AllowCustomPaging="False" AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False">
                                                            <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                            <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                            <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                            <Columns>
                                                                <asp:TemplateColumn HeaderText="Remove">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox runat="server" AutoPostBack="False"></asp:CheckBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateColumn>
                                                                <asp:BoundColumn DataField="LastName" ReadOnly="True" HeaderText="Last Name"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="FirstName" ReadOnly="True" HeaderText="First Name"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="Username" ReadOnly="True" HeaderText="Username"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="OrganizationName" ReadOnly="True" HeaderText="Institution > Department > Unit">
                                                                </asp:BoundColumn>
                                                                <asp:BoundColumn Visible="False" DataField="AdmPersonId"></asp:BoundColumn>
                                                            </Columns>
                                                        </asp:DataGrid>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <table style="height: 5%" width="100%">
                                    <tr align="right">
                                        <td>
                                            <asp:ImageButton ID="cancel" runat="server" ImageUrl="../Images/b_cancel.gif"></asp:ImageButton>&nbsp;
                                            <asp:ImageButton ID="save" runat="server" ImageUrl="../Images/b_save.gif"></asp:ImageButton>&nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <cc2:SetFocus ID="setFocus" runat="server" FocusControl="lastName"></cc2:SetFocus>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
